import $http from '@/assets/js/http'


//查询招聘轮播图列表
export function getbannerRecruit(name, index, size) {
    return $http.get('/manage/bannerRecruit/list', {
        params: { title:name, pageIndex: index, pageSize: size }
    });
}

//删除轮播图
export function postDeleteBanner(delId) {
    return $http.post('/manage/bannerRecruit/delete', {
        id: delId
    });
}

//新增轮播图
export function postAddBanner(param) {
    return $http.post('/manage/bannerRecruit/add', {
        img:param.img,
        title: param.title,
        recruitId:param.recruitId,
    });
}

//编辑轮播图
export function postEditBanner(param) {
    return $http.post('/manage/bannerRecruit/edit', {
        id:param.id,
        img:param.img,
        title: param.title,
        recruitId:param.recruitId,
    });
}